<template>
  <div class="main">
    <!-- 顶部区域 -->
    <div class="top">
      <van-icon
        @click="ret()"
        class="arrowLeft"
        style="top: 10px"
        name="arrow-left"
        color="pink"
        size="30"
      />
      <span>设置</span>
    </div>

    <!-- 分割线 -->
    <div class="line"></div>

    <!-- 列表项1 -->
    <ul class="list">
      <li @click="personal()" class="person">
        <span>个人设置</span>
        <van-icon class="rightArrow" name="arrow" color="#b2b2b2" />
      </li>
      <li style="border: none">
        <span>账号设置</span>
        <van-icon class="rightArrow" name="arrow" color="#b2b2b2" />
      </li>
    </ul>

    <!-- 分割线 -->
    <div class="line"></div>

    <!-- 列表项2 -->
    <ul class="list">
      <li>
        <span>意见反馈</span>
        <van-icon class="rightArrow" name="arrow" color="#b2b2b2" />
      </li>
      <li>
        <span>用户守则</span>
        <van-icon class="rightArrow" name="arrow" color="#b2b2b2" />
      </li>
      <li>
        <span>关于我们</span>
        <van-icon class="rightArrow" name="arrow" color="#b2b2b2" />
      </li>
      <li style="border:none">
        <span>商务合作</span>
        <van-icon class="rightArrow" name="arrow" color="#b2b2b2" />
      </li>
    </ul>

    <!-- 退出登录 -->
    <div class="down">
      <div class="quit">
        <p @click="main()">退出登录</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    ret() {
      this.$router.push({
        path:'/wode'
      })
    },
    main(){
      this.$router.push({
        path:'/main'
      })
    },
    personal(){
      this.$router.push({
        path:'/wode/personal'
      })
    }
  },
};
</script>

<style lang="scss" scoped>
.main {
  left: 0;
  right: 0;
  position: fixed;
}
.top {
  display: flex;
  height: 45px;
  .arrowLeft {
    padding-left: 10px;
  }
  span {
    font-weight: bold;
    padding-right: 30px;
    font-size: 18px;
    color: rgb(61, 60, 60);
    margin: 0 auto;
    line-height: 45px;
  }
}
.line {
  height: 10px;
  background-color: #f5f7f9;
}
.list {
  li {
    margin: 0 auto;
    width: 340px;
    border-bottom: 1px solid #e7e2e5;
    height: 42px;
    span {
      line-height: 42px;
      font-size: 16px;
      margin: 0 1px;
    }
    .rightArrow {
      left: 258px;
    }
  }
}
.down {
  height: 351px;
  background-color: #f5f7f9;
  .quit {
    padding: 285px 15px 20px;
    p {
      background-color: #e98b71;
      height: 40px;
      color: white;
      text-align: center;
      line-height: 40px;
      font-size: 16px;
      border-radius: 3px;
    }
  }
}
</style>